import { defHttp } from "@/utils/http";

type Result = {
  code: number;
  success: boolean;
  data: Array<any>;
};

export const getAsyncRoutes = () => {
  // return defHttp.get<Result>({
  //   url: "/get-async-routes"
  // });
  return new Promise((resolve, reject) => {
    resolve({
      data: [],
      code: 0,
      success: true
    });
    reject([]);
  });
};
